package cn.sdormitory.controller.smartdor;

import cn.sdormitory.common.api.CommonResult;
import cn.sdormitory.smartdor.service.SdRentPayRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/smartdor/rent/payRecord")
public class SdRentPayRecordController {

    @Autowired
    SdRentPayRecordService sdRentPayRecordService;

    @GetMapping("/find/{studentNo}")
    public CommonResult findPayRecordList(@PathVariable("studentNo") String studentNo){
        return sdRentPayRecordService.findPayRecordList(studentNo);
    }
}
